package com.it.jzs.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("t_blog")
public class Blog {
    @TableId(type = IdType.AUTO)
    private Integer id;
    private String content;
    private String title;
    private int views;
    private int typeId;
    private int userId;
    private String description;
    private int total;  // 字数
    private int time;   // 阅读时长
    private Long createTime;
    private Long updateTime;
    @TableLogic
    private Integer isDeleted;
    private Integer collection;   // 收藏数
    private Integer thumbs;   // 点赞数
    private String firstPicture;
}
